#include "putty.h"
#include <stdlib.h>

// Stubbable at the cost of less-visible error reports
void fatalbox(char *p, ...) { abort(); }
void modalfatalbox(char *p, ...) { abort(); }

// Stubbable at the cost of clipboard support
void get_clip(void *frontend, wchar_t ** p, int *len) {}
void write_clip(void *frontend, wchar_t * data, int *attr, int len, int must_deselect) {}

// Stubbable at the cost of bidirectional text support
int do_shape(bidi_char *line, bidi_char *to, int count) { return 1; }

//
// These stubs are safe to leave in place (I think)
//
printer_job *printer_start_job(char *printer) { return NULL; }
void printer_job_data(printer_job *pj, void *data, int len) {}
void printer_finish_job(printer_job *pj) {}

int char_width(Context ctx, int uc)
{
	return 1;
}

void logflush(void *handle) {}
void logtraffic(void *handle, unsigned char c, int logmode) {}

int is_iconic(void *frontend) { return 0; }
void set_icon(void *frontend, char *title) {}
void set_iconic(void *frontend, int iconic) {}
void set_title(void *frontend, char *title) {}
void set_zoomed(void *frontend, int zoomed) {}
void set_zorder(void *frontend, int top) {}
void refresh_window(void *frontend) {}
void move_window(void *frontend, int x, int y) {}
void get_window_pixels(void *frontend, int *x, int *y) {}
void get_window_pos(void *frontend, int *x, int *y) {}
char *get_window_title(void *frontend, int icon) { return ""; }
void request_paste(void *frontend) {}
void request_resize(void *frontend, int w, int h) {}
void palette_reset(void *frontend) {}
void palette_set(void *frontend, int n, int r, int g, int b) {}
void set_raw_mouse_mode(void *frontend, int activate) {}
void sys_cursor(void *frontend, int x, int y) {}
int do_bidi(bidi_char *line, int count) { return 0; }

